<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>管理后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">管理后台</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$admin.avatar|default='/static/admin/images/avatar.jpg'}" class="layui-nav-img">
                    {$admin.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" class="modify-password">修改密码</a></dd>
                    <dd><a href="{:url('login/logout')}">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-home"></i> 控制台</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-user"></i> 用户管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="{:url('user/index')}">用户列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-template"></i> 模板管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="{:url('template/index')}">模板列表</a></dd>
                        <dd><a href="javascript:;" data-url="{:url('template/add')}">添加模板</a></dd>
                    </dl>
                </li>
                <!-- 其他菜单项 -->
            </ul>
        </div>
    </div>
    
    <!-- 内容主体 -->
    <div class="layui-body">
        <div class="layui-tab" lay-filter="tabs" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="console">控制台</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src="{:url('index/console')}" frameborder="0" class="layui-iframe"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script src="/static/admin/js/admin.js"></script>
</body>
</html> 